package com.veng.springbootdemo.mapper;

import com.veng.springbootdemo.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface UserMapper {
    @Select("select * from user")
    @Results({
            @Result(property = "userName",column = "user_name")
    })
    List<User> findAll();
}
